/*****************************************************************************
  Copyright ?2002-2004 by Martin Cook. All rights are reserved. If you like
  this code then feel free to go ahead and use it. The only thing I ask is 
  that you don't remove or alter my copyright notice. Your use of this 
  software is entirely at your own risk. I make no claims about the 
  reliability or fitness of this code for any particular purpose. If you 
  make changes or additions to this code then please clearly mark your code 
  as yours. If you have questions or comments then please contact me at: 
  martin@codegator.com
  
  Have Fun! :o)
*****************************************************************************/

using System;

namespace CG.Security
{

	/// <summary>
	/// Represents a security exception.
	/// </summary>
	public class SecurityException : System.SystemException
	{

		// ******************************************************************
		// Constructors.
		// ******************************************************************

		#region Constructors

		/// <summary>
		/// Initializes a new instance of the SecurityException class.
		/// </summary>
		public SecurityException()
		{

		} // End SecurityException()

		// ******************************************************************

		/// <summary>
		/// Initializes a new instance of the SecurityException class with a specified error message and a reference to the inner exception that is the cause of this exception.
		/// </summary>
		/// <param name="message">The error message that explains the reason for the exception.</param>
		/// <param name="innerException">The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.</param>
		public SecurityException(string message, System.Exception innerException)
            : base(message, innerException)
		{

		} // End SecurityException()

		// ******************************************************************

		/// <summary>
		/// Initializes a new instance of the SecurityException class with a specified error message.
		/// </summary>
		/// <param name="message">The error message that explains the reason for the exception.</param>
		public SecurityException(string message)
			: base(message)
		{

		} // End SecurityException()

		#endregion

	} // End class SecurityException

} // End namespace CG.Security

